<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>本地存储</title>
	<link rel="stylesheet" href="../libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="../libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="../libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<script>

	var a;
	var array1; 			// 声明
	array1 = Array(); // 定义
	array1[0] = 'abc';// 赋值
	array1[1] = 78;		// 赋值
	array1[2] = '学习';		// 赋值
	array1[3] = '工作';		// 赋值
	array1[4] = '娱乐';		// 赋值

	var cities = Array();
	cities = ['北京', '上海', '广州']
	array1[5] = cities;

  var s1 = cities.shift();
  console.log('SHIP: '+ s1);


	console.log(array1);
	console.log(cities);
	console.log(array1.toString());
	console.log(array1[5][0]);
	console.log(array1[5][1]);

	var total = 0;
	var even = 0;
	var odd = 0;
	var flag = true;
	var i;
	for( i = 0; i < 100; i++ ) {
		total += i;

		if ( i == 11 ) {
			break;
		}

		if (flag) {
			continue;
		}

		if (( i % 2) == 0) {
			even += i;
		} else {
			odd += i;
		}
	}
	console.log('总数'+total);
	console.log('偶数'+even);
	console.log('奇数'+odd);

</script>
<script>
</script>
</body>
</html>